#include <stdio.h>
/*
  name:雷佩璇
  time:2021/6/3
  zy:例5-1
*/
int main() {
	int m = 150000;
	int password = 512716;
	//定义一个用户输入的密码
	int password_input;
	printf("请输入六位密码");
	scanf_s("%d", &password_input);
	//一个等号位赋值 两个等号为比较
	if (password == password_input)
	{
		int q;
		printf("请输入取款金额");
		scanf_s("%d", &q);
		printf("您的余额为%d", m - q);
	}
	else {
		printf("您的密码输入错误");
	}
	return 0;

}